import axios from "@/api/myaxios";

let BASE_URL = "/aniApi"
let AnimalApi = {
    getAnimalInfoById(id) {
        return axios.get(BASE_URL + "/animal/info/id/" + id)
    },
    getAnimalPictureListById(id) {
        return axios.get(BASE_URL + "/animal/picture/id/" + id)
    },
    getAnimalListBySchoolAndCampusAndArea(school, campus, area, pageNum) {
        return axios.post(BASE_URL + "/animal/list/school/" + pageNum, {
            school: school,
            campus: campus,
            area: area
        })
    }
}

export default AnimalApi